package com.lsj.webSpring.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author Lsj
 * @version 1.0
 * @date 2021/6/28 18:19
 */
public class HelloController extends AbstractController {
    @Override
    protected ModelAndView handleRequestInternal(
            HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
        System.out.println("请求到了hello controller");
        return new ModelAndView("welcome");
    }
}
